package com.dews.warn.domain.vo;

import com.dews.common.utils.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 消息通知对象Vo
 * 
 * @author qingfeng
 * @date 2025-02-05
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class NotificationMessageVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "-1 默认表示是系统发送")
    private Long sendUserId;

    @ApiModelProperty(value = "发送用户名称")
    private String sendUserName;

    @ApiModelProperty(value = "接收用户Id")
    private Long receiveUserId;

    @ApiModelProperty(value = "接收用户名称")
    private String receiveUserName;

    @ApiModelProperty(value = "消息类型")
    private String messageType;

    @ApiModelProperty(value = "消息标题")
    private String messageTitle;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "是否已查看 （N:未查看   Y:已查看）")
    private String isSee;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    private LocalDateTime updateTime;
}
